function TwitterAssistant(argFromPusher) {
}

TwitterAssistant.prototype = {
	setup: function() {
		Ares.setupSceneAssistant(this);
		var this1 = this;
		new Ajax.Request("http://api.twitter.com/1/statuses/user_timeline.json?screen_name=HP_IPED_Catalog", {
			method: 'get',
			onSuccess: function(transport) {
				if(transport.status == 0) {
					this1.$.label1.setLabel("Connection timeout");
					return;
				}
				this1.$.label1.setShowing(false);
				this1.$.list1.setItems(transport.responseJSON);
			},
			onFailure: function(transport) {
				this1.$.label1.setLabel("Fail to connect to twitter");
			}
		});
	},
	cleanup: function() {
		Ares.cleanupSceneAssistant(this);
	}
};